﻿Public Class formSearchByDate

    Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
        FormInvoiceView.dgv.DataSource = Cmd.ExecuteDataTable("SELECT * FROM Invoice WHERE InvoiceDate BETWEEN '" & dtpFrom.Value.ToString("yyyy.MM.dd") & "' AND '" & dtpTo.Value.ToString("yyyy.MM.dd") & "'")
        Me.Hide()
    End Sub
End Class